<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://xmlns.jcp.org/jsf/core"
                xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
    <!--
    --> 
    <p:panelGrid columns="2" >


        <p:outputLabel for="projectName" value="Project Name"/>
        <p:inputText id="projectEditName" value="#{projectsBean.selectedEditProject.name}" required="true"/>
        <p:outputLabel for="projectEditDesc" value="Project Description"/>
        <p:inputTextarea id="projectEditDesc" value="#{projectsBean.selectedEditProject.description}" required="true"/>
        <p:outputLabel for="projectEditLogo" value="Logo"/>
        <p:fileUpload id="projectEditLogo" auto="true" dragDropSupport="true" fileUploadListener="#{projectsBean.setUploadedFile}"/>

        <f:facet name="footer">

            <p:commandButton update="basic" value="Edit" actionListener="#{projectsBean.updateProject()}" icon="ui-icon-arrowreturnthick-1-w" oncomplete="PF('projectEditDiag').hide()"/>
        </f:facet>


    </p:panelGrid>


</ui:composition>

